import request from '@/utils/request'

// 查询保本返回明细列表
export function listTKeepOrderReturnDetail(query) {
  return request({
    url: '/bussiness/TKeepOrderReturnDetail/list',
    method: 'get',
    params: query
  })
}

// 查询保本返回明细详细
export function getTKeepOrderReturnDetail(id) {
  return request({
    url: '/bussiness/TKeepOrderReturnDetail/' + id,
    method: 'get'
  })
}

// 新增保本返回明细
export function addTKeepOrderReturnDetail(data) {
  return request({
    url: '/bussiness/TKeepOrderReturnDetail',
    method: 'post',
    data: data
  })
}

// 修改保本返回明细
export function updateTKeepOrderReturnDetail(data) {
  return request({
    url: '/bussiness/TKeepOrderReturnDetail',
    method: 'put',
    data: data
  })
}

// 删除保本返回明细
export function delTKeepOrderReturnDetail(id) {
  return request({
    url: '/bussiness/TKeepOrderReturnDetail/' + id,
    method: 'delete'
  })
}
